package com.example.demo.demos.web.cpt;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.annotation.LiteflowMethod;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
import com.yomahub.liteflow.enums.NodeTypeEnum;
import com.yomahub.liteflow.slot.DefaultContext;

@LiteflowComponent
public class MyDefineCmp {

	@LiteflowMethod(nodeType = NodeTypeEnum.COMMON, value = LiteFlowMethodEnum.PROCESS, nodeId = "a", nodeName = "普通组件A")
	public void processA(NodeComponent nodeComponent){
		System.out.println("流程执行A");
	}

	@LiteflowMethod(nodeType = NodeTypeEnum.COMMON, value = LiteFlowMethodEnum.PROCESS, nodeId = "b", nodeName = "普通组件B")
	public void beforeA(NodeComponent nodeComponent){
		System.out.println("流程执行B");
	}

	@LiteflowMethod(nodeType = NodeTypeEnum.COMMON, value = LiteFlowMethodEnum.PROCESS, nodeId = "c", nodeName = "普通组件C")
	public void afterA(NodeComponent nodeComponent){  
		System.out.println("流程执行C");
	}  
}